package com.alan.builder.impl;

import com.alan.builder.Reservation;
import com.alan.builder.ReservationBuilder;

/**
 * Created by Alan on 2018/8/22.
 */
public class AioReservationBuilder extends ReservationBuilder {

    @Override
    public Reservation build() {
        //这里可以确保得到的reservation对象一定进行过预初始化
        Reservation reservation = new Reservation();
        reservation.setType("AIO");

        reservation.setName(this.getName());
        return reservation;
    }
}
